<%@page import="no.gnet.edvd.web.util.Constants"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ include file="header.jsp"%>

<div class="content_wrap">
	<section id="content">
		<br>
		<hr>
		<br>
		<hr>
		<br>
		<h3>Latest events</h3>

		<c:if test="${not empty allevents}">

			<ul>
				<c:forEach var="event" items="${allevents}">

					<li class="hentry contain">Gaute proposed a bet
						<div class="avatar medium">
							<a class="user_avatar" href="/users/12344"
								data-user-name="Gaute Småland" data-user-title="Seniorkonsulent"
								data-mini-profile="true" data-tooltip-class="user_mini_profile"
								data-tooltip-position="bottom_left" data-user-id="1111"> <img
								src="../img/bilde012.jpg" width="45" height="45" border="0">


							</a>
						</div>
						<div class="entry_wrapper">
							<div class="entry_details">
								<span class="entry-title vcard "> <a
									href='event?id=${event.id}'>${event.shortname}</a>
								</span>
								<div class="message_body seemore_container">
									${event.description}</div>
							</div>
							<div class="meta_actions">
								<div class="actions">


									<div id="likes_area_${event.id}" class="likes_area">
										${event.likes} people like this</div>

									<c:if test="${not empty sessionuser}">
									
										<div id=rating_${event.id}>
											<a href="#" class="like" id="${event.id}" name="up">Like</a>
										</div>
									
									<div id="show_comments_${event.id}">
										<a href="#" class="comment" id="${event.id}">Show comments</a>
									</div>
										<div id=commentsarea_${event.id}>
										
										</div>
									</c:if>


									<div class="entry_meta">
										<a class="realtime_timestamp timestamp"
											href="/messages/19053311?ref=stream"
											data-timestamp="1389905899000"> ${event.datePosted} </a> <span
											class="source"> from <span data-truncate-length="30">web</span>
										</span>
									</div>
								</div>
								<div class="interactions" style="display: none;">
									<h3 class="print_title">Comments</h3>

									<ul class="likes" style="display: none;"></ul>
									<ul class="comments" style="display: none;">
									</ul>
									<form class="comment_form" method="POST"
										action="/messages/19053311/comments" style="display: none;">
										<div>
											<input type="hidden" name="comment[from]" value="web">
										</div>
										<span class="form_element_wrapper expandable placeholder">
											<pre class="expandable">
												<span id="expandable_1389910201939"></span><br>
											</pre> <textarea id="text_1389910201939" name="comment[text]"
												data-mentionable="true"
												data-mirrorto="#expandable_1389910201939"
												placeholder="Write a comment..."></textarea>


										</span>
										<button class="btn_sm btn_default push" type="submit">
											<span><b>Comment</b></span>
										</button>
										<div class="comment_attachments"></div>
									</form>
								</div>
							</div>
							<div class="meta">
								<div class="side_actions dropdown_wrapper">

						<c:forEach var="optionWithOdds" items="${event.optionsWithOdds}">
									<div class="shortcutbet">
										<a class="optionbet"title="oddsforthisoption"
											href='event?id=${event.id}'
												
											
											data-tooltip-position="middle_right">${optionWithOdds.option.name} = ${optionWithOdds.odds} </a>
									</div>
						</c:forEach>

								</div>
							</div>
					</li>

				</c:forEach>
			</ul>

		</c:if>

	</section>
</div>
<%@ include file="footer.jsp"%>